Learning to Align the Source Code to the Compiled Object Code

نویسندگان

  • Dor Levy
  • Lior Wolf
چکیده

We propose a new neural network architecture and use it for the task of statement-by-statement alignment of source code and its compiled object code. Our architecture learns the alignment between the two sequences – one being the translation of the other – by mapping each statement to a context-dependent representation vector and aligning such vectors using a grid of the two sequence domains. Our experiments include short C functions, both artificial and human-written, and show that our neural network architecture is able to predict the alignment with high accuracy, outperforming known baselines. We also demonstrate that our model is general and can learn to solve graph problems such as the Traveling Salesman Problem.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The effect of Code switching on the Acquisition of Object Relative Clauses by Iranian EFL Learners

This study attempted to investigate the impact of teacher’s code-switching on the acquisition of a problematic grammatical structure, namely, object relative clauses, by intermediate EFL learners. Moreover, a secondary objective of the study was to determine the EFL learners’ attitudes and opinions regarding the effectiveness of teacher’s code-switching in their learning of a specific aspect of...

متن کامل

Earthquake Vulnerability and Seismic Risk Assessment of Bandar Abbas in South of Iran

Bandar Abbas (center of Hormozgan province) is the most important port city in the south of Iran because of its historical places, cultural, economic, social and political importance. High risk of earthquake occurrence in this city and its province indicates the necessity of surveying the seismic vulnerability of buildings. The object of this paper is collected from existing Buildings, compiled...

متن کامل

Adding 166Ho data to VARSKIN2 code and dose calculation to human skin

Background: Skin cancer can be treated by various methods. Electron radiotherapy has been a useful therapeutic modality in the treatment of skin cancers in areas which are difficult to cure by other methods. Depth dose distribution of 166Ho using VARSKIN2 code is presented in this work. Material and Methods: Depth dose distribution of 166Ho was calculated, using VARSKIN2 code by adding...

متن کامل

Investigating the Role of Code Smells in Preventive Maintenance

The quest for improving the software quality has given rise to various studies which focus on the enhancement of the quality of software through various processes. Code smells, which are indicators of the software quality have not been put to an extensive study for as to determine their role in the prediction of defects in the software. This study aims to investigate the role of code smells in ...

متن کامل

Static detection of C++ vtable escape vulnerabilities in binary code

Static binary code analysis is a longstanding technique used to find security defects in deployed proprietary software. The complexities of binary code compiled from object-oriented source languages (e.g. C++) has limited the utility of binary analysis to basic applications using simpler coding constructs, so vulnerabilities in object-oriented code remain undetected. In this paper, we present v...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017